
angular.module('DevHelp')

.controller('DevHelp.HomeCtrl', ['$scope', '$state', 'DevHelpNav', 
    function ($scope, $state, DevHelpNav) {
        $scope.data = {
            navItems: DevHelpNav.getNavItems()
        };

        $scope.goDetail = function (navItem, summary) {
            $state.go('DevHelp-detail', {
                navItemId: navItem.id,
                summaryId: summary.id
            });
        };
    }
]);